<?php
/*!
 * @version		$Id: index.php 8841 2007-12-06 20:27:59Z $
 * @package		diduo
 * @link        http://www.diduo.net
 * @author      moolao <moolao@diduo.net>
 * @abstract    index.php: interface file 
 * @discussion  Application Interface
 * @copyright	Copyright (C) 2007 - 2008 diduo.net development team. All rights reserved.
 */
//error_reporting( 7 ); 
@set_magic_quotes_runtime( 0 );

// set flag that this is a parent file
define( '_DEXEC', 1 );
define( 'DPATH_BASE', dirname(__FILE__) );
define( 'DS', DIRECTORY_SEPARATOR );

require_once ( DPATH_BASE .DS.'conf'.DS.'defines.cfg.php' );
require_once ( DPATH_BASE .DS.'controller'.DS.'application.php' );

$app  =  new Application();  // create the application
$app->setRoot( DPATH_BASE .DS.'controller' );  // set controller directory
$app->setDefaultAction( 'main' );  // set the default action
$app->run(); 
?>